<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form method="post" action="update">
		地址<select name="address" value="${goods.address}">
		<option value="1">天津</option>
		<option value="2">上海</option>
		<option value="3">香港</option>
		</select><br/>
		<input type="hidden" name="gid" value="${goods.gid}">
		名称<input type="text" name="gname"  placeholder="商品名称" value="${goods.gname}"/>${errorname }<br/>
		价钱<input type="number" name="price"  placeholder="价格" value="${goods.price}"/><br/>
		数量<input type="number" name="count" placeholder="数量"  value="${goods.count}"/><br>
		日期<input type="date" name="gDate" value="<fmt:formatDate value="${goods.gDate}" pattern="yyyy-MM-dd"/>"/><br/>
		<input type="submit" value="更新">	
	</form>
	
</body>
</html>